﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Shop.Infartructrue.Interfaces
{
    public interface IBaseRepository<T>
    {
        IQueryable<T> GetAll();

        Task<int> AddAsync(T entity);

        Task<int> UpdateAsync(T entity);

        Task<int> UpdateRange(List<T> entities);
    }
}
